home *** CD-ROM | disk | FTP | other *** search
/ PCMania 19 / PCMania19.iso / Jogos em Flash / CARTAS / TAROT.SWF / scripts / DefineSprite_104 / frame_3 / DoAction.as
Text File  |  2003-11-17  |  932b  |  17 lines

  1. t = 0;
  2. while(2 >= t)
  3. {
  4.    speedx[t] = (eval("_root.cartes.emplacement" + t)._x - eval("_root.cartes.carte" + _root.numcarteschoisies[t])._x) * fri;
  5.    speedy[t] = (eval("_root.cartes.emplacement" + t)._y - eval("_root.cartes.carte" + _root.numcarteschoisies[t])._y) * fri;
  6.    speedr[t] = (eval("_root.cartes.emplacement" + t)._rotation - eval("_root.cartes.carte" + _root.numcarteschoisies[t])._rotation) * fri;
  7.    t++;
  8. }
  9. t = 0;
  10. while(2 >= t)
  11. {
  12.    setProperty(eval("_root.cartes.carte" + _root.numcarteschoisies[t]), _X, eval("_root.cartes.carte" + _root.numcarteschoisies[t])._x + speedx[t]);
  13.    setProperty(eval("_root.cartes.carte" + _root.numcarteschoisies[t]), _Y, eval("_root.cartes.carte" + _root.numcarteschoisies[t])._y + speedy[t]);
  14.    setProperty(eval("_root.cartes.carte" + _root.numcarteschoisies[t]), _rotation, eval("_root.cartes.carte" + _root.numcarteschoisies[t])._rotation + speedr[t]);
  15.    t++;
  16. }
  17.